﻿/**
************************************************************
* @file         hal_LED.h
* @brief        hal_LED.c对应头文件
* @author       Gizwits
* @date         2016-09-05
* @version      V03010201
* @copyright    Gizwits
* 
* @note         机智云.只为智能硬件而生
*               Gizwits Smart Cloud  for Smart Products
*               链接|增值ֵ|开放|中立|安全|自有|自由|生态
*               www.gizwits.com
*
***********************************************************/
#ifndef _HAL_LED_H_
#define _HAL_LED_H_

#include <stdio.h>
#include <c_types.h>
#include "os_type.h"
#include "osapi.h"
#include <stdint.h>

typedef struct
{
    unsigned char timer_type;
    unsigned char timer_number;
    unsigned char byte0;
    unsigned char byte1;
}TIMER_t;

typedef struct
{
    unsigned char color_val;
    unsigned char color_bri;
    unsigned char byte0;
    unsigned char byte1;
}TIMER2_t;

typedef struct
{
    unsigned char R;
    unsigned char G;
    unsigned char B;
    unsigned char W;
}COLOR_t;


typedef struct
{
    unsigned char RED;
    unsigned char GREEN;
    unsigned char BLUE;
    unsigned char WHITE;
    unsigned char COLOR_VAL;
    unsigned char COLOR_BRIGHT;
    unsigned char ONorOFF;
    unsigned char IS_FACTORY;
    unsigned char IS_OLDERTEST;
    TIMER_t my_timer[30];
    TIMER2_t my_timer2[30];
}gdata_t; 
    
void LED_Color_Value(unsigned char color_v); 
void LED_Color_Bright(unsigned char color_B); 

#endif /*_HAL_LED_H_*/

